package com.ruoyi.buss.grid.cj.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.grid.cj.mapper.DataWgWgcjAppbiMapper;
import com.ruoyi.buss.grid.cj.domain.DataWgWgcjAppbi;
import com.ruoyi.buss.grid.cj.service.IDataWgWgcjAppbiService;

/**
 * 网格村居BI折线图Service业务层处理
 * 
 * @author sxy
 * @date 2021-07-16
 */
@Service
public class DataWgWgcjAppbiServiceImpl implements IDataWgWgcjAppbiService 
{
    @Autowired
    private DataWgWgcjAppbiMapper dataWgWgcjAppbiMapper;

    /**
     * 查询网格村居BI折线图
     * 
     * @param village 网格村居BI折线图ID
     * @return 网格村居BI折线图
     */
    @Override
    public DataWgWgcjAppbi selectDataWgWgcjAppbiById(String village)
    {
        return dataWgWgcjAppbiMapper.selectDataWgWgcjAppbiById(village);
    }

    /**
     * 查询网格村居BI折线图列表
     * 
     * @param dataWgWgcjAppbi 网格村居BI折线图
     * @return 网格村居BI折线图
     */
    @Override
    public List<DataWgWgcjAppbi> selectDataWgWgcjAppbiList(DataWgWgcjAppbi dataWgWgcjAppbi)
    {
        return dataWgWgcjAppbiMapper.selectDataWgWgcjAppbiList(dataWgWgcjAppbi);
    }

    /**
     * 新增网格村居BI折线图
     * 
     * @param dataWgWgcjAppbi 网格村居BI折线图
     * @return 结果
     */
    @Override
    public int insertDataWgWgcjAppbi(DataWgWgcjAppbi dataWgWgcjAppbi)
    {
        dataWgWgcjAppbi.setCreateTime(DateUtils.getNowDate());
        return dataWgWgcjAppbiMapper.insertDataWgWgcjAppbi(dataWgWgcjAppbi);
    }

    /**
     * 修改网格村居BI折线图
     * 
     * @param dataWgWgcjAppbi 网格村居BI折线图
     * @return 结果
     */
    @Override
    public int updateDataWgWgcjAppbi(DataWgWgcjAppbi dataWgWgcjAppbi)
    {
        return dataWgWgcjAppbiMapper.updateDataWgWgcjAppbi(dataWgWgcjAppbi);
    }

    /**
     * 批量删除网格村居BI折线图
     * 
     * @param villages 需要删除的网格村居BI折线图ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjAppbiByIds(String[] villages)
    {
        return dataWgWgcjAppbiMapper.deleteDataWgWgcjAppbiByIds(villages);
    }

    /**
     * 删除网格村居BI折线图信息
     * 
     * @param village 网格村居BI折线图ID
     * @return 结果
     */
    @Override
    public int deleteDataWgWgcjAppbiById(String village)
    {
        return dataWgWgcjAppbiMapper.deleteDataWgWgcjAppbiById(village);
    }
}
